﻿//-----------------------------------------------------------------------
// <copyright file="FacetNumberType.cs" company="Forebrain Technology, LLC">
//
// Copyright (c) Forebrain Technology, LLC. All rights reserved.
// 
// This source code is released under the Microsoft Public License (Ms-PL).
//
// </copyright>
//-----------------------------------------------------------------------
namespace PivotCollectionTools.Xml
{
    using System;
    using System.Xml;
    using System.Xml.Serialization;

    /// <summary>
    /// A number facet value.
    /// </summary>
    [SerializableAttribute()]
    [XmlType(Namespace = "http://schemas.microsoft.com/collection/metadata/2009")]
    public class FacetNumberType : XmlNodeBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="FacetNumberType"/> class.
        /// </summary>
        public FacetNumberType() 
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="FacetNumberType"/> class.
        /// </summary>
        /// <param name="number">The number.</param>
        public FacetNumberType(decimal number)
        {
            this.Value = number;
        }

        /// <summary>
        /// Gets or sets the value.
        /// </summary>
        /// <value>The value of the facet number type.</value>
        [XmlAttribute()]
        public decimal Value { get; set; }
    }
}
